import Vue from 'vue'
import Vuex from 'vuex'
import user from '@/store/modules/user'
import pay from "@/store/modules/pay"
import order from "@/store/modules/order"
import photo from "@/store/modules/photo"
import consultAndService from "@/store/modules/consultAndService"
import lawyer from "@/store/modules/lawer"
import news from "@/store/modules/news"
import dict from "@/store/modules/dicts"
import tag from "@/store/modules/tag"
import vipType from "@/store/modules/vipType"
import money from "@/store/modules/money"
import doc from "@/store/modules/doc"
import getters from './getters'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    user,
    pay,
    photo,
    consultAndService,
    news,
    lawyer,
    order,
    dict,
    tag,
    vipType,
    money,
    doc
  },
  getters
})

export default store
